package com.miplus.ccrm.report.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 坐席
 * @TableName CC_SEATER
 */
@TableName(value ="CC_SEATER")
@Data
public class CcSeater {
    /**
     * 坐席ID
     */
    @TableId
    private Integer seaterId;

    /**
     * 用户账号
     */
    private String account;

    /**
     * 姓名
     */
    private String name;

    /**
     * 坐席类型 SYS.AGENT.TYPE
     */
    private String type;

    /**
     * 最大接待人数
     */
    private Integer maxReception;

    /**
     * 是否启用 1.启用 0.禁用
     */
    private Integer enableFlag;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建人姓名
     */
    private String createByName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改人
     */
    private Date updateBy;

    /**
     * 修改人姓名
     */
    private String updateByName;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 技能等级 CC.SEATER.SKILL 1.初级 2.中级 3.高级
     */
    private Integer skill;

    /**
     * 坐席编号
     */
    private String agentCode;

    /**
     * 分机号
     */
    private Integer ext;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 每日最大回访数量
     */
    private Integer maxCallbackNum;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CcSeater other = (CcSeater) that;
        return (this.getSeaterId() == null ? other.getSeaterId() == null : this.getSeaterId().equals(other.getSeaterId()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getMaxReception() == null ? other.getMaxReception() == null : this.getMaxReception().equals(other.getMaxReception()))
            && (this.getEnableFlag() == null ? other.getEnableFlag() == null : this.getEnableFlag().equals(other.getEnableFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateByName() == null ? other.getCreateByName() == null : this.getCreateByName().equals(other.getCreateByName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateByName() == null ? other.getUpdateByName() == null : this.getUpdateByName().equals(other.getUpdateByName()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getSkill() == null ? other.getSkill() == null : this.getSkill().equals(other.getSkill()))
            && (this.getAgentCode() == null ? other.getAgentCode() == null : this.getAgentCode().equals(other.getAgentCode()))
            && (this.getExt() == null ? other.getExt() == null : this.getExt().equals(other.getExt()))
            && (this.getNickName() == null ? other.getNickName() == null : this.getNickName().equals(other.getNickName()))
            && (this.getMaxCallbackNum() == null ? other.getMaxCallbackNum() == null : this.getMaxCallbackNum().equals(other.getMaxCallbackNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSeaterId() == null) ? 0 : getSeaterId().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getMaxReception() == null) ? 0 : getMaxReception().hashCode());
        result = prime * result + ((getEnableFlag() == null) ? 0 : getEnableFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateByName() == null) ? 0 : getCreateByName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateByName() == null) ? 0 : getUpdateByName().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getSkill() == null) ? 0 : getSkill().hashCode());
        result = prime * result + ((getAgentCode() == null) ? 0 : getAgentCode().hashCode());
        result = prime * result + ((getExt() == null) ? 0 : getExt().hashCode());
        result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
        result = prime * result + ((getMaxCallbackNum() == null) ? 0 : getMaxCallbackNum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", seaterId=").append(seaterId);
        sb.append(", account=").append(account);
        sb.append(", name=").append(name);
        sb.append(", type=").append(type);
        sb.append(", maxReception=").append(maxReception);
        sb.append(", enableFlag=").append(enableFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createByName=").append(createByName);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateByName=").append(updateByName);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", skill=").append(skill);
        sb.append(", agentCode=").append(agentCode);
        sb.append(", ext=").append(ext);
        sb.append(", nickName=").append(nickName);
        sb.append(", maxCallbackNum=").append(maxCallbackNum);
        sb.append("]");
        return sb.toString();
    }
}